<?php
/**
 * Created by PhpStorm.
 * User: 68008000
 * Date: 2017/11/22
 * Time: 9:07
 */

namespace app\admin\validate;


use think\Validate;

class Goods extends Validate
{
    protected $rule = [
        'gname'  => 'require',
        'gnumber' => 'require',
//        'company' => 'require',
//        'market_price'=>'require',
//        'shop_price'=>'require',
//        'stock'=>'require',
//        'click'=>'require',
    ];

    protected $message = [
        'gname.require'  => '请输入商品名称',
        'gnumber.require'  => '请输入商品货号',
//        'company.require'=>'请填写单位',
//        'market_price.require'  => '请输入市场价格',
//        'shop_price.require'=>'请输入商城价格',
//        'stock.require'=>'请输入库存',
//        'click.require'=>'请输入点击量'
    ];
}